package com.leo.blog.dto;

import java.util.List;

import com.leo.blog.entity.Ping;
import com.leo.blog.enums.PingStateEnum;

public class PingExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//评论数量
	private int count;
	//操作(增删改的时候使用)
	private Ping ping;
	//列表(查询列表的时候使用)
	private List<Ping> pingList;
				
	//构造函数
	public PingExecution() {
					
	}
				
	//操作失败的时候使用的构造器
	public PingExecution(PingStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
				
	//操作成功的时候使用的构造器
	public PingExecution(PingStateEnum stateEnum, Ping ping) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.ping = ping;
	}
				
	//操作成功的时候使用的构造器
	public PingExecution(PingStateEnum stateEnum, List<Ping> pingList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.pingList = pingList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Ping getPing() {
		return ping;
	}

	public void setPing(Ping ping) {
		this.ping = ping;
	}

	public List<Ping> getPingList() {
		return pingList;
	}

	public void setPingList(List<Ping> pingList) {
		this.pingList = pingList;
	}
	
	
}
